package com.ibs.hadoop.spring.mybatis.dao.impl;

import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Repository;

import com.ibs.hadoop.spring.mybatis.comm.BaseDAOImpl;
import com.ibs.hadoop.spring.mybatis.dao.MyBatisQueryInf;

/**
 * 进行3G地市指标查询实现
 * @author liujun
 *
 */
@Repository
public class MyBatisQueryImpl extends BaseDAOImpl implements MyBatisQueryInf {

    private static final String QUERY_SCOPE = "com.ibs.hadoop.spring.mybatis.";

    @Override
    public List<Object> queryMsg() throws Exception {
        List<Object> list = this.selectList(QUERY_SCOPE + "selectGetMsg", null);

        return list;
    }

    public List<Map<String, Object>> userTsQuery() throws Exception {
        List<Map<String, Object>> list = this.selectList(QUERY_SCOPE + "userTsquery", null);

        return list;
    }

    @Override
    public List<Object> queryHiveToHbase() throws Exception {
        List<Object> list = this.selectList(QUERY_SCOPE + "selecthiveToHbase", null);

        return list;
    }

}
